from django.contrib.auth.models import Permission,ContentType

from rest_framework import serializers
from rest_framework.serializers import ModelSerializer

class ContentTypeSerializer(ModelSerializer):
    class Meta:
        model = ContentType
        fields = ('id','name')





class PermissionSerializer(ModelSerializer):
    class Meta:
        model = Permission
        fields = '__all__'